package com.cl.core.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author liddhappy
 * @description 用户角色
 * @createTime 2022/12/4 9:51
 */
@Data
@ApiModel(value = "平台角色菜单", description = "角色菜单关联表")
public class PlatformRoles extends PlatformBaseEntry {
    private static final long serialVersionUID = 1L;

    @TableId(value = "roleId",type = IdType.AUTO)
    @ApiModelProperty(value = "角色ID", required = true)
    private Long roleId;

    @ApiModelProperty(value = "角色名称", required = true)
    private String roleName;

    @ApiModelProperty(value = "角色权限", required = true)
    private String rolePermission;

    @ApiModelProperty(value = "角色顺序", required = true)
    private String roleSort;

    /**
     * 角色状态（0正常 1停用）
     */
    @ApiModelProperty(value = "角色状态", required = true)
    private Integer status;

    /**
     * 菜单组
     */
    @ApiModelProperty(value = "菜单组", required = true)
    private List<String> menuIds;

}
